/**
 * Lockbox
 * a Password and Secret Information Manager
 * View to display and edit a single item
 *
 * Created by Nathan Black
 */

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UITable.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTextTableCell.h>
#import <UIKit/UIPreferencesDeleteTableCell.h>
#import <UIKit/UISegmentedControl.h>
#import "LockboxItem.h"
#import "UIPreferencesTableEx.h"

#define LBIV_MAXFIELDROWS    6
#define LBIV_NAVBAR_HEIGHT (45.0f)
#define LBIV_NOTEFIELD_LINES  4

@interface LockboxItemView : UIView
{
    UIPreferencesTableEx* _prefsTable;
    UIPreferencesTableCell* _editCell;
    UIPreferencesTableCell* _delGroupCell;
    UIPreferencesTableCell* _tagGroupCell;
    UIPreferencesTableCell* _tagsCell;
    UINavigationBar* _navBar;
    UINavigationItem* _navBarLabel;
    UIPreferencesTextTableCell* _editField[LBIV_MAXFIELDROWS];
    UIPreferencesDeleteTableCell * _deleteCell;
    
    LockboxItem* _item;
    id _transDelegate;
    id _deleteDelegate;
    int _kbType;
}

- (id)initWithFrame:(struct CGRect)frame app:(id)app;
- (void)setItem:(LockboxItem*)item;
- (LockboxItem*)item;
- (void)dealloc;
- (void)setDeleteDelegate:(id)object;
- (BOOL)canSelectRow:(int)row;

@end
